package repository

import (
	"ruoyi/domain/entity/common"
	"ruoyi/domain/entity/response"
	"ruoyi/domain/entity/system"
)

type SysPostRepository interface {
	SelectUserPostGroup(userName string) string

	SelectSysPostList(params common.SearchTableDataParam, isPage bool) common.TableDataInfo

	SelectPostListByUserId(userId int) []int

	AddPostByUser(user system.SysUserParam)

	AddPostListByUser(postIds []int, userId int)

	DeletePostByUser(userIds []int)

	FindPostInfoById(postId string) system.SysPost

	SavePost(post system.SysPost) response.Response

	EditPost(sysPost system.SysPost) response.Response

	DeletePost(postIds string) response.Response
}
